#ifndef _BSP_SW_I2C_H
#define _BSP_SW_I2C_H
#include <inttypes.h>
typedef unsigned char u8, bool, BOOL;
#define MT6701_IIC_ADDR 0x0c // 0x0D //0x1a
uint8_t qst_sw_writereg(uint8_t slave, uint8_t reg_add,uint8_t reg_dat);
uint8_t qst_sw_writeregs(uint8_t slave, uint8_t reg_add, uint8_t *reg_dat, uint8_t len);
uint8_t qst_sw_readreg(uint8_t slave, uint8_t reg_add, uint8_t *buf, uint16_t num);

u8 read_one_byte(u8 addr, u8 *data);

#endif
